<#import "../tpl/pageTep.ftl" as page>
<@page.pageBase currentMenu="查看活动">
<style>
    .button-large {
        font-size: 16px;
    }

    hr {
        border-color: #009688;
    }
</style>
<div class="xm-offline">
    <div class="row">
        <div class="panel">
            <div class="panel-header">
            <#--<a href="${basepath}/manage/offline/toCommentList">返回上一级</a>-->
                <a onclick="javascript:history.go(-1);">返回上一级</a>
            </div>
            <div class="panel-body">
                <form id="editForm" class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            志愿者姓名：
                        </label>

                        <div class="controls">
                            <input type="text" class="control-text span-width span10" name="accountName" value="${offlineComment.accountName!}"
                                   placeholder="请输入活动名称" disabled="disabled">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            活动日记内容：
                        </label>

                        <div class="controls control-row12" style="height: 350px;initialFrameWidth: 100%;">
                            <textarea type="text" data-rules="{required:true}" class="input-large" name="content"
                                      id="content">${offlineComment.content!}</textarea>
                        </div>
                    </div>
                    <div class="control-group" id="offline-img">
                        <label class="control-label">
                            <s>*</s>
                            机构图片：
                        </label>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var editor = UE.getEditor('content');
    var Grid = BUI.Grid;
    var Store = BUI.Data.Store;
    var imagesStore = new Store({});
    var editForm = new BUI.Form.Form({
        srcNode: '#editForm',
        submitType: 'ajax',
        callback: function (data) {

        }
    }).render();
    /*--------------------------多张机构图片分割  begin--------------------*/
    var imgArr = "${offlineComment.picture!}".split(",");
    var imgHtml = "";
    for (var i = 0; i < imgArr.length; i++) {
        imgHtml += '<img src="${basepath}/' + imgArr[i] + '"/ style="height: 100px;width: 100px;margin:0 0 10px 10px" />';//创建img标签，图片地址赋值src
    }
    document.getElementById("offline-img").innerHTML += imgHtml;
    /*--------------------------多张机构图片分割  end--------------------*/
</script>

</@page.pageBase>